// // @ts-ignore
// /* eslint-disable */
//
// import { request } from 'umi';
//
// /** 获取当前的用户的菜单 GET  */
// export async function queryMenuReq(options?: { [key: string]: any }) {
//   return request(`/api/getRouters/${options.id}`, {
//     method: 'GET',
//     needCode: true,
//     ...(options || {}),
//   });
// }
//
// export const queryNoticeReleaseReq = (params: any) =>
//   request(`/api/system/notice/InRelease`, {
//     // method: 'delete',
//     // needCode: true,
//   });
//
// export const queryAllNoticeReq = (params) => {
//   return request('/api/system/notice/list', {
//     params,
//     needCode: true,
//   });
// };
//
// export const queryMessageReq = (params: any) =>
//   request(`/api/message/page/unread`, {
//     params,
//   });
//
// export const queryHistoryMessageReq = (params: any) =>
//   request(`/api/message/page/read`, {
//     params,
//   });
//
// export const hasReadMessageReq = (params: any) =>
//   request(`/api/message/read`, {
//     params,
//     method: 'put',
//     needCode: true,
//   });
//
// export const hasReadAllMessageReq = (params: any) =>
//   request(`/api/message/read/batch`, {
//     params,
//     method: 'put',
//     needCode: true,
//   });
//
// // 注册客户端
// // export const registerClientReq = (params: any) =>
// //   request(`/api/push/server/register/client`, {
// //     headers: {
// //
// //     },
// //     needCode: true,
// //   });

import Https from "@/utils/Https";
import Https2 from "@/utils/Https2";

export const queryUserInfoReq = () => Https2.get("/system/user/getInfo");

export const queryMenuListReq = () => Https2.get(`/system/menu/getRouters`);

//dictType 字典类型  params附带参数
export const queryDict = (dictType, params = {}) =>
  Https.post(`/system/dict/data/type/${dictType}`, params);

export const queryBrandInfoReq = () =>
  Https.get("/brand/setting/findBrand", {});
